import request from '@/utils/request'

// 查询活动列表
export function list() {
  return request({
    url: '/system/detail/list',
    method: 'get'
  })
}

//新增活动

export function add(data) {
  console.log(data)
  return request({
    url: '/system/detail',
    method: 'post',
    data: data
  })
}

//删除活动
export function remove(activityId) {
  return request({
    url: '/system/detail/' + activityId,
    method: 'delete'
  })
}

//删除活动
export function rejectSociety(activityId, rejectContext) {
  return request({
    url: '/system/detail/rejectSociety',
    method: 'post',
    data: {activityId: activityId, rejectReason: rejectContext}
  })
}

//删除活动
export function applySocirfy(activityId) {
  return request({
    url: '/system/detail/applySocirfy/' + activityId,
    method: 'put'
  })
}
